package com.cristina.attention.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 发送任务信息
 * @author by superman
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TaskInfo implements Serializable {

    /**
     * 区分im业务和非im业务
     */
    private boolean imFlag;

    private String messageGroupId;

    /**
     * 消息集合
     */
    private List<MessageInfo> messageInfos;

    public TaskInfo(boolean imFlag) {
        this.imFlag = imFlag;
    }
}
